package com.example.plat.service;

import com.example.plat.enity.Activity;
import org.springframework.stereotype.Service;

import java.text.ParseException;
import java.util.List;

public interface MyActivityService {

    //获取用户发布的活动
    List<Activity> getMyActivity(String sponsor) throws ParseException;

    //获取用户参与的活动
    List<Activity> getJoinActivity(Long userId) throws ParseException;

    //获取用户收藏的活动
    List<Activity> getCollection(Long userId);

    List<Activity> getHistoryPublish(String userName) throws ParseException;

    //获取历史参与活动
    List<Activity> getHistoryJoin(Long userId) throws ParseException;
}
